package com.eaoa.uc.document.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.eaoa.base.EABaseAction;
import com.eaoa.uc.document.bo.PubDocumentDeleteBO;
import com.stony.core.util.CoreUtils;

public class PubDocumentDeleteAction extends EABaseAction{

	protected ActionForward doWork(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {

		Long documentno = CoreUtils.parseLong(request.getParameter("documentno"));

		PubDocumentDeleteBO bo = new PubDocumentDeleteBO(documentno);
		bo.execute();

		return mapping.findForward("success");

	}
}
